//
//  YDOAOilUseVC.swift
//  YDOAProduct
//
//  Created by YDWY on 2017/6/13.
//  Copyright © 2017年 Allen. All rights reserved.
//

import UIKit

class YDOAOilUseVC: UIViewController {

    @IBOutlet weak var youkaBtn: UIButton!
    @IBOutlet weak var topupAmountTF: UITextField!
    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = "油卡使用"
        youkaBtn.layer.borderWidth = 1
        youkaBtn.layer.borderColor = UIColor.lightGray.cgColor
        
        youkaBtn.layer.borderWidth = 1
        youkaBtn.layer.borderColor = UIColor.lightGray.cgColor
    
    }
    
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    
    //卡号选择按钮点击
    @IBAction func kahaoBtnClick(_ sender: UIButton) {

        let popmenu = YMPopMenu(frame: self.view.bounds, dataSource:[
                ["item":"1561561561231561564","id":"1"],
                ["item":"156156156124","id":"2"],
                ["item":"1561564515315846","id":"3"],
                ["item":"15615611561564","id":"4"],
                ["item":"1561561561231561515313264","id":"5"],
            ])
        
        view.addSubview(popmenu)
        weak var weakSelf = self
        popmenu.callBack = {(id :String , title : String) in
            weakSelf?.youkaBtn.setTitle(title, for: .normal)
            YMLog.log(item: "\(title) ==== \(id)")
        }

        
    }
    
    //确认按钮点击
    @IBAction func sureBtnclick(_ sender: Any) {
         navigationController?.pushViewController(YDOASucceedVC(), animated: true)
    }
    
    
}
